/**
 * 
 */
package file;

/**
 * @author acidflow
 *
 */
public class CoupleIpPort {


	private String ip;
	private int port;
	// Peut être le bufferMap du peer
	
	public CoupleIpPort(String ip, int port){
		this.ip = ip;
		this.port = port;
	}

	/**
	 * @return the ip
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @return the port
	 */
	public int getPort() {
		return port;
	}

	/**
	 * @param port the port to set
	 */
	public void setPort(int port) {
		this.port = port;
	}
	
	@Override
	public boolean equals(Object c){
		return (this.ip.equals(((CoupleIpPort)c).getIp()) && this.port == ((CoupleIpPort)c).getPort());
	}

}
